package com.ssm.service.imp;

import com.ssm.mapper.DemandMapper;
import com.ssm.pojo.Demand;
import com.ssm.service.DemandOperation;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("DemandOperationImp")
public class DemandOperationImp implements DemandOperation {

    @Resource
    private DemandMapper demandMapper;

    @Override
    public Boolean addDemand(Demand demand) {
        return demandMapper.addDemand(demand);
    }

    @Override
    public int demandListSize() {
        return demandMapper.demandListSize();
    }

    @Override
    public List<Demand> demandList(Integer sNum, Integer num) {
        return demandMapper.demandList(sNum,num);
    }

    @Override
    public Integer responseDemand(Long setId, Long id) {
        return demandMapper.responseDemand(setId,id);
    }


}
